import request from '@/utils/request'

// 查询报文记录日志列表
export function listDataMsgLog(query) {
  return request({
    url: '/basic/dataMsgLog/list',
    method: 'get',
    params: query
  })
}

// 查询报到报率
export function querySticsReportMap(query) {
  return request({
    url: '/basic/dataMsgLog/querySticsReportMap',
    method: 'get',
    params: query
  })
}

// 查询报文记录日志详细
export function getDataMsgLog(id) {
  return request({
    url: '/basic/dataMsgLog/' + id,
    method: 'get'
  })
}

// 新增报文记录日志
export function addDataMsgLog(data) {
  return request({
    url: '/basic/dataMsgLog',
    method: 'post',
    data: data
  })
}

// 修改报文记录日志
export function updateDataMsgLog(data) {
  return request({
    url: '/basic/dataMsgLog',
    method: 'put',
    data: data
  })
}

// 删除报文记录日志
export function delDataMsgLog(id) {
  return request({
    url: '/basic/dataMsgLog/' + id,
    method: 'delete'
  })
}

// 导出报文记录日志
export function exportDataMsgLog(query) {
  return request({
    url: '/basic/dataMsgLog/export',
    method: 'get',
    params: query
  })
}

export function queryCountDay(query) {
  return request({
    url: '/basic/dataMsgLog/queryCountDay',
    method: 'get',
    params: query
  })
}
